﻿using System.Windows;
using System.Windows.Threading;

namespace TravellerApp1
{
    internal static class WinHelper
    {
        public static async void ForceClose(this Window window)
        {
            await Dispatcher.CurrentDispatcher.InvokeAsync(() => window.Close(), DispatcherPriority.Normal);
        }

        private static string custid;
        private static string custname;

        public static string GetId()
        {
            return custid;
        }

        public static void SetId(string str)
        {
            custid = str;
        }

        public static string GetName()
        {
            return custname;
        }

        public static void SetName(string str)
        {
            custname = str;
        }
    }
}
